﻿@using NewRen.Models;
@using NewRen.Models.ViewModel
@{
    vUser user = ViewBag.User as vUser;
    ViewBag.Title = "个人概述";
    Layout = "~/Views/Shared/_Layout_Show.cshtml";
}
<div class="ucenter-left account-left-border">
    <div class="ucneter-l-head cf">
        <div class="ulhead-headicon">
            @if (user.Picture == null)
            {
                <img src="/Images/userphoto.png" width="50" height="50"
                     alt=@user.UserName style="border-radius:50%;" />
            }
            else
            {
                <img src="/User/ShowPicture/@user.ID" width="50"
                     alt=@user.UserName height="50" style="border-radius:50%;" />
            }

        </div>
        <div class="ulhead-info">
            <p class="ulhead-info-uname">@user.UserName</p>

            <div class="ulhead-info-tool">
                <a class="ulhead-icon icon-lock ucenter-mail " href="/User/PwdEdit/@user.ID" title="修改密码">
                    <div class="ucenter-mail-tip">修改密码</div>
                </a>
                <a href="/User/Edit/@user.ID"
                   class="ulhead-icon icon-setting ucenter-mail" title="设置个人信息"></a>
            </div>
        </div>
    </div>
    <div class="ucenter-l-list">
        <ul class="ullist-ul">
            <li id="uclick">
                <a href="/User/Show/@user.ID">个人中心</a>
            </li>
            <li id="uclick2" class="active">
                <a href="/User/DescriptionShow/@user.ID">个人概述</a>
            </li>
            <li id="uclick3">
                <a href="/User/Edit/@user.ID">账号设置</a>
            </li>
            <li id="uclick4">
                <a href="/User/IntegrationShow/@user.ID">支出明细</a>
            </li>
            <li id="uclick5">
                <a href="/User/CollectManager/@user.ID">我的收藏</a>
            </li>
            <li id="uclick6">
                <a href="/User/BrowseRecord/@user.ID">浏览记录</a>
            </li>
            <!--<li id="uclick7">
                <a href="/User/PayMoney/@user.ID">充值</a>
            </li>-->
        </ul>
    </div>
</div>
<div class="ucenter-right cf">
    <div class="ucenter-right-head"><h3>个人概述</h3></div>
    <div class="ucenter-right-body">
        <div class="tabbed">
            <div class=" tabGroup" style="display:block; margin-left:50px">
                <div class="form-item">
                    <label style="font-size:smaller">用户名:</label>
                    <span style="font-size:smaller">@user.UserName</span>
                </div>
                <br />
                <div class="form-item">
                    <label style="font-size:smaller">真实姓名:</label>
                    <span style="font-size:smaller">@user.RealName</span>
                </div>
                <br />
                <div class="form-item">
                    <label style="font-size:smaller">职业:</label>
                    <span style="font-size:smaller">@user.Job</span>
                </div>
                <br />
                <div class="form-item">
                    <label style="font-size:smaller">自我评价:</label>
                    <span style="font-size:smaller">@user.Description</span>
                </div>
                <br />
                <div class="form-item">
                    <label style="font-size:smaller">地址:</label>
                    <span style="font-size:smaller">@user.City-@user.District-@user.Town</span>
                </div>
                <br />
                <div class="form-item">
                    <label style="font-size:smaller">认证:</label>
                   @{
                       if (user.IsVerified)
                       {
                        <span style="font-size:smaller">认证</span>
                       }
                       else
                       {
                        <span style="font-size:smaller">未认证</span>
                       }

                }
                </div>

            </div>
        </div>
    </div>
</div>
